<!--私有策略-->
<template>
  <div class="all" @viewappear="viewappear" @viewdisappear="viewdisappear">
    <!--自定义启动-->
    <UpWork ref="work" 
    :strategyId="strategyId" 
    :strategyName="strategyName" 
    :startType="'PRIVATE'" />
  </div>
</template>

<script>

//组件
import UpWork from '@/up/UpWork.vue' 

//功能
import navigator from "@/_js/navigator"; 

const weexFunction = weex.requireModule('WeexFunction');

import I18N from "@/_i18n/i18n";
var T = I18N.t;

export default {

  components: {
    UpWork,
  },

  data() {
    return {
      T:T,

      strategyId:'',
      strategyName:'',
    };
  },

  mounted() {
    this.strategyId = navigator.getParam("strategyId");
    this.strategyName = navigator.getParam("strategyName");
    this.strategyName = navigator.getParam("strategyName");
    weexFunction.setTitle(this.strategyName);
  },

  methods:{
    /*************************************************通信触发*/
    //完全显示
    viewappear() {
      this.$refs.work && this.$refs.work.viewappear();
    },

    //完全隐藏
    viewdisappear() {
      this.$refs.work && this.$refs.work.viewdisappear();
    },
  }
}

</script>


<style src="@/_css/style.css"></style>
<style scoped>
</style>